package org.ccay.excel.importer;

/**
 * 定义Excel导入所使用的相关常量	
 * @author chaowangbang
 * @since Mar 21, 2012
 */
public final class ExcelImportConstants {
	
	/** 等待中 **/
	public static final String STATUS_WAITING = "0";
	
	/** 处理中 **/
	public static final String STATUS_IMPORTING = "1";
	
	/** 完成 **/
	public static final String STATUS_IMPORTED = "2";
	
	/**部分成功 **/
	public static final String STATUS_PARTIAL_IMPORTED = "3";
	
	/** 异常 **/
	public static final String STATUS_EXCEPTION = "4";
	
	/** 批量导入要处理的记录数 **/
	public static final int BATCH_IMPORT_COUNT = 190;
	
	/**
	 * 列设置默认为0，代表默认去掉空格
	 */
	public static final int COLUMN_WIPE_DEFAULT=0;
	
	public static final String IMPORT_BATCH_SIZE_PATH = "Ccay.Excel.ImportBatchSize";
	
	/**
	 * 列设置标题行颜色
	 */
	public static final String FOREGROUND_COLOR_PATH = "Ccay.Excel.ForegroundColor";
	
	/**
	 * 列设置的数据字典路径
	 */
	public static final String COLUMN_WIPE_PATH = "Ccay.Excel.ColumnWipe";
	
	/**
	 * excel导入  处理数据前置ben 参数key值
	 */
	public static final String EXCEL_IMPORT_PROCESS_BEFORE = "processBefore";
	
	/**
	 * sheet 和 blcok 的分割符合
	 */
	public static final String EXCEL_SHEET_BLOCK_SPLIT = "#";
	
	/** 异常编码定义 **/
	public static final String ExcelImportSupport_NOT_FOUND = "ccay.excel.00060003";
	
	public static final String PARSE_FAIL = "ccay.excel.00060001";
	
	public static final String INVALID_EXCEL_FORMAT = "ccay.excel.00060002";
	
	public static final String VO_CLASS_NOT_FOUND = "ccay.excel.00060004";
	
	public static final String VO_MAPPING_EXCEPTION = "ccay.excel.00060005";
	
	public static final String SHEET_NOT_FOUND = "ccay.excel.00060011";

	public static final String DATACONSUMER_NOT_FOUND = "ccay.excel.00060012";
	
	public static final String EXCEL_PARSING_EXCEPTION = "ccay.excel.00060013";
	
	public static final String DATAROW_LESSTHAN_TITLEROW = "ccay.excel.00060014";
	
	public static final String COLUMN_NOT_FOUND = "ccay.excel.00060015";
	
	public static final String VALIDATOR_INSTANCE_FAIL = "ccay.excel.00060016";
	
	public static final String TOOMUCH_ERRORS = "ccay.excel.00060017";
	
	public static final String DATACONSUMER_EXCEPTION = "ccay.excel.00060018";
	
	public static final String SHEET_NOTFOUND_IN_EXCEL = "ccay.excel.00060019";
	
	public static final String SHEET_TEMPLATE_ERROE_IN_EXCEL = "ccay.excel.00060020";
	
	public static final String EXCEL_IMPORT_PROCESS_BEFORE_NOT_FOUND = "ccay.excel.00060021";
	
	public static final String ENDDATAROW_LESSTHAN_BEGIN = "ccay.excel.00060022";
	
	public static final String SHEET_TEMPLATE_NO_TITLE_IN_EXCEL = "ccay.excel.00060023";
	
	public static final String EXCEL_TEMPLATE_NO_DATA_IN_EXCEL = "ccay.excel.00060024";

	
}
